﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace StartupSolution.ViewModel
{
    public class Book : BaseViewModel
    {

        public Book()
        {
        }

        private string author;
        public string Author
        {
            get
            {
                return this.author;
            }
            set
            {
                if (this.author != value)
                {
                    this.author = value;
                    this.OnPropertyChanged("Author");
                }
            }
        }

        private string title;
        public string Title
        {
            get
            {
                return this.title;
            }
            set
            {
                if (this.title != value)
                {
                    this.title = value;
                    this.OnPropertyChanged("Title");
                }
            }
        }

        private IEnumerable<Chapter> chapters;
        public IEnumerable<Chapter> Chapters
        {
            get
            {
                return this.chapters;
            }
            set
            {
                if (this.chapters != value)
                {
                    this.chapters = value;
                    this.OnPropertyChanged("Chapters");
                }
            }
        }

    }

}
